package com.example.defaultshop;

import java.util.ArrayList;

import android.graphics.Bitmap;

public class Item {
	private ArrayList<MixHeader> headers;
	private ArrayList<MixGroup> groups;
	private ArrayList<Mix> mix;
	
	private String name, nrtxt, choices, picture;
	
	private boolean showPicture;
	private int idx, categoryId, menuIdx, price, amount;
	
	public Item(String name, String nrtxt, String choices, String picture, boolean showPicture, int idx, int categoryId, int menuIdx, int price, int amount) {
		this.name = name;
		this.nrtxt = nrtxt;
		this.picture = picture;
		this.showPicture = showPicture;
		this.choices = choices;
		this.idx = idx;
		this.categoryId = categoryId;
		this.menuIdx = menuIdx;
		this.price = price;
		this.amount = amount;
		headers = new ArrayList<MixHeader>();
		groups = new ArrayList<MixGroup>();
		mix = new ArrayList<Mix>();
	}
	
	public Item(Menu menu, int amount) {
		this.name = menu.getName();
		this.picture = menu.getPicture();
		this.showPicture = menu.isShowPicture();
		this.idx = menu.getIdx();
		this.categoryId = menu.getCategoryId();
		this.menuIdx = menu.getIdx();
		this.price = menu.getPrice();
		this.amount = amount;
		headers = new ArrayList<MixHeader>();
		groups = new ArrayList<MixGroup>();
		mix = new ArrayList<Mix>();
	}
	
	public Item() {
		headers = new ArrayList<MixHeader>();
		groups = new ArrayList<MixGroup>();
		mix = new ArrayList<Mix>();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNrtxt() {
		return nrtxt;
	}

	public void setNrtxt(String nrtxt) {
		this.nrtxt = nrtxt;
	}

	public String getChoices() {
		return choices;
	}

	public void setChoices(String choices) {
		this.choices = choices;
	}

	public String getPicture() {
		return picture;
	}

	public void setPicture(String picture) {
		this.picture = picture;
	}

	public boolean isShowPicture() {
		return showPicture;
	}

	public void setShowPicture(boolean showPicture) {
		this.showPicture = showPicture;
	}

	public int getIdx() {
		return idx;
	}

	public void setIdx(int idx) {
		this.idx = idx;
	}

	public int getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(int categoryId) {
		this.categoryId = categoryId;
	}

	public int getMenuIdx() {
		return menuIdx;
	}

	public void setMenuIdx(int menuIdx) {
		this.menuIdx = menuIdx;
	}

	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public int getAmount() {
		return amount;
	}

	public void setAmount(int amount) {
		this.amount = amount;
	}

	public ArrayList<MixHeader> getHeaders() {
		return headers;
	}
	
	public void addHeader(MixHeader h) {
		headers.add(h);
	}
	
	public void removeHeader(MixHeader h) {
		headers.remove(h);
	}

	public ArrayList<MixGroup> getGroups() {
		return groups;
	}
	
	public void addGroup(MixGroup g) {
		groups.add(g);
	}
	
	public void removeGroup(MixGroup g) {
		groups.remove(g);
	}

	public ArrayList<Mix> getMix() {
		return mix;
	}
	
	public void addMix(Mix m) {
		mix.add(m);
	}
	
	public void removeMix(Mix m) {
		mix.remove(m);
	}
}